<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
    <script language="javascript" type="text/javascript">
	$(function(){
		$('a.brow').uploadControl({
			file_type: 'jpg|jpeg|png',
			path: 'all',
			language: 'vi',
			max_depth: 0,
			buttons:'upload|select|remove|rename|reload|mkdir|language',
			callback:{
				beforeSelect: function(selectedFile, currentControl){},
				afterSelected: function(selectedFile, currentControl){},
				onClosed: function(selectedFile, currentControl){
					if(selectedFile){
						if(window.opener){
							window.opener.CKEDITOR.tools.callFunction( <?php echo $data['cke_funcNum']?>,'<?php echo $data['root_path']?>'+ selectedFile.path );
							window.close();
						}
					}
				}
			}
		});
		$('a.brow').trigger('click');
	});
</script>
  </head>
  <body >
  <a href="#" style="display: none" class="brow">browse file</a>
  </body>
</html>
